package com.contacts.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 联系人表
 * </p>
 *
 * @author rick
 * @since 2022-12-13 11:23:15
 */
@Getter
@Setter
@TableName("wk_crm_contacts")
@ApiModel(value = "CrmContacts对象", description = "联系人表")
public class CrmContacts implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "contacts_id", type = IdType.AUTO)
    private Integer contactsId;

    @ApiModelProperty("联系人名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("下次联系时间")
    @TableField("next_time")
    private LocalDateTime nextTime;

    @ApiModelProperty("手机")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("电话")
    @TableField("telephone")
    private String telephone;

    @ApiModelProperty("电子邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("职务")
    @TableField("post")
    private String post;

    @ApiModelProperty("客户ID")
    @TableField("customer_id")
    private Integer customerId;

    @ApiModelProperty("地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建人ID")
    @TableField("create_user_id")
    private Long createUserId;

    @ApiModelProperty("负责人ID")
    @TableField("owner_user_id")
    private Long ownerUserId;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("批次")
    @TableField("batch_id")
    private String batchId;

    @ApiModelProperty("最后跟进时间")
    @TableField("last_time")
    private LocalDateTime lastTime;


}
